package mylibrary.spring.injection;

import mylibrary.spring.injection.service.AdminServiceImpl;

public class DoAction {

	private AdminServiceImpl adminService;
//	public void setAdminService(AdminService adminService) {
//		this.adminService = adminService;
//	}
	
	public DoAction(AdminServiceImpl adminService) {
		System.out.println("con 1");
		this.adminService = adminService;
	}
	
	public DoAction(AdminServiceImpl adminService, String s) {
		System.out.println("con2");
		System.out.println(s);
		this.adminService = adminService;
	}
	
	public void test() {
		adminService.do1();
	}
}
